console.log('我的项目')

import Vue from 'vue'

import App from './App.vue'

import {
  registerMicroApps,
  start,
  prefetchApps 
} from 'qiankun';

import router from './router'

registerMicroApps([
  {
    name: 'react', // app name registered
    entry: 'http://127.0.0.1:8002/.app/index.html',
    container: '#app1',
    activeRule: '/#/text',
  },
  {
    name: '0-1react', // app name registered
    entry: 'http://127.0.0.1:8001/.app/index.html',
    container: '#app1',
    activeRule: '/#/home',
  }
]);

start({
  urlRerouteOnly: true
});

new Vue({
  router,
  render: h => h(App)
}).$mount('#root')